package misp_backend.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.beans.Transient;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

/**
 * 
 * @TableName order
 */
@TableName(value ="restaurant_order")
@Data
public class Order extends BaseEntity {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Long orderId;

    /**
     * 
     */
    private Long tableId;
    @TableField(exist = false)
    private String tableName;

    /**
     * 
     */
    private BigDecimal totalAmount;

    /**
     * 
     */
    private String status;
    @TableField(exist = false)
    private List<Orderdetails> orderlist;
    private String orderNum;
    private int customerNum;
    private Long packageId;
}